home *** CD-ROM | disk | FTP | other *** search
- Path: sun2.ruf.uni-freiburg.de!grafp
- From: grafp@sun2.ruf.uni-freiburg.de (Philipp Graf)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Integer Sine tables?
- Date: 2 Mar 1996 11:18:37 GMT
- Organization: Rechenzentrum der Universitaet Freiburg, Germany
- Message-ID: <4h9aqd$r7k@n.ruf.uni-freiburg.de>
- References: <4glqbd$4ab@nnrp1.news.primenet.com>
- NNTP-Posting-Host: sun2.ruf.uni-freiburg.de
- X-Newsreader: TIN [version 1.2 PL2]
-
- Stanley Joyce (sjoyce@primenet.com) wrote:
- : Since I am using assembly, how can I make sine tables without using an FPU?
- : (i.e. to use in 3d routines)
-
- Well you could use the following approximation:
-
- Sin(A) = A - (A^3)/3! + (A^5)/5! - (A^7)/7! [ +(A^9)/9! - ... ]
-
- This approximation is already quite good for most purposes.
-
- --
- - - -- -- ---( Spin/Abyss )--- -- - - -
- Philipp Graf, <grafp@ruf.uni-freiburg.de>
-